<template>
  <div id="app">
<!--    主体部分-->
    <div id="main">
<!--      头部-->
      <div id="head">
        <div class="head_member" style="margin-left: 70%">主页</div>
        <div class="head_member">关于</div>
        <div class="head_member">其他</div>
      </div>
<!--      中心-->
      <div id="center">
<!--        文字部分-->
        <div class="center_text">Hi Im Hanry</div>
<!--        图标部分-->
        <div id="icon">
          <img class="icon_img" src="./assets/QQ-circle-fill.png">
          <img class="icon_img" src="./assets/bilibili-fill.png">
          <img class="icon_img" src="./assets/github-fill.png">
          <img class="icon_img" src="./assets/微信.png">
        </div>
<!--        跳转部分-->
        <div id="go">
          <button class="go_member" @click="go_shop">电商管理</button>
          <button class="go_member" @click="go_dk">打卡系统</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    go_shop(){
      window.location.href='http://1.14.68.201/shop'
    },
    go_dk(){
      window.location.href='http://1.14.68.201/dk'
    }
  }
}
</script>
<style>
@font-face {
  font-family: f1;
  src: url("../src/assets/ziti.ttf");
}
/*设置背景*/
#app {
  height: 100%;
  background: url("./assets/p1.jpg");
}

/*主要区域*/
#main {
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/*头部*/
.head_member{
  display: inline-block;
  margin: 20px;
  color: white;
}

/*中心*/
#center{
  /*设置到大体居中*/
  position: relative;
  top:40%;
  left: 50%;
  margin-top: -150px;
  margin-left: -200px;
  width: 400px;
  height: 300px;
  /*border: black 1px solid;*/
}
/*文段*/
.center_text{
  font-family: f1;
  font-size: 70px;
  color: white;
  width: 100%;
  text-align: center;
}
/*图标*/
#icon{
  text-align: center;
}
.icon_img{
  width: 30px;
  margin-top: 30px;
  margin-right: 20px;
}
/*跳转*/
#go{
  position: relative;
  top: 100px;
  text-align: center;
}
.go_member{
  font-family: f1;
  font-size: 20px;
  color: azure;
  display: inline-block;
  width: 100px;
  height: 100px;
  background-color: rgba(158,158,158,0.8);
  border-radius: 150px;
  border: none;
  margin: 20px;
  text-align: center;
}
</style>
